{include file="header.tpl.php"}


<div class="titleFull">

	<div class="wrapper">

		<h1 style="line-height: 100px; margin: 0px;">Manage Gateways</h1>

	</div>

</div>


<div class="titleBlueBar"></div>




<div class="content2">

	<div class="wrapper">

		<div class="h30"></div>

		<div class="boxLeft2">




			<div style="margin-left:14px;">
			{if $error_msg ne ""}
				 
				  <div class="inline_reg_error">
					<img src="templates/images/cross.gif" style="vertical-align:top" alt="" /> {$error_msg}
					</div>
					<br />
				 
			{/if}
			</div>


			<form action="gateways.php" method="post" id="gw_settings">
			<input type="hidden" name="action" id="action" value="" />
			<div style=" margin:5px 0px; clear:both; background:#ffffff; border:1px solid #cccccc; height:40px; padding:5px;">

			<div style="float:left; margin-top: 4px; width:125px; text-align:left; line-height: 30px;">
			&nbsp;&nbsp;<a href="create.php" class="buttonsmall">New Gateway</a>
			</div>

			<div style="float:right; margin-top: 7px; width: 530px; text-align: right; line-height: 30px;">
			<input type="image" id="getCode" class="actionBtn" value="getcode" src="templates/images/getcode.jpg"  /> 
			<input type="image" id="previewGW" class="actionBtn" value="preview" src="templates/images/preview.jpg"  /> 
			<input type="image" id="editGW" class="actionBtn" value="edit" src="templates/images/edit.jpg"  />
			<input type="image" id="cloneGW"  class="actionBtn" value="clone" src="templates/images/clone.jpg" />
			<input type="image" id="delGW" class="actionBtn"  value="delete" src="templates/images/delete.jpg"  />
			</div>

			</div>

			<div style="margin-left:14px; clear:both; margin-top:10px;">
			{if $success_msg ne ""}

				  
				  <div  class="inline_success_msg" style="width:700px" >
					<img src="templates/images/tick.gif" style="vertical-align:top" alt="" /> {$success_msg}
				  </div>
				
			{/if}
			</div>





			<!--Listing-->
			<div class="clear" id="listing" style="background:#ffffff; border:1px solid #cccccc;">


			<!--Gateway Table-->
			<div class="gw_table">
			<div class="top"><div class="caption"></div></div>
			<div class="mid">
			<div class="data">
			{foreach item=gw from=$gateways name=g}

			<div class="gw_row" {if $smarty.foreach.g.index  ==  ($gateways|@count)-1}  style="border-bottom:0;" {/if} id="gw_{$gw.id}">
			<p style="float:left; width:500px;">&nbsp;&nbsp;&nbsp; <input type="radio" name="gateway" value="{$gw.id}" />&nbsp;&nbsp;{$gw.name} <span style="font-size:10px; color:#c95d5d;">(Created on {$gw.date})</span></p>
			<p style="float:right; width:150px; font-size:14px; color: #00a0c2;">Earned ${if $gw.earnings eq ""}0{else}{$gw.earnings}{/if}</p>
			</div>
			{/foreach}




			</div>
			</div>
			<div class="bottom">&nbsp;</div>
			</div>
			<!--End GW Table-->

			{if $next ne "" || $previous ne ""}
			<div class="clear">

			<table style="width:700px;">
			<tr>
				<td class="paging" style="text-align:left; width:33.33%">{if $previous ne ""}<a href="gateways.php?page={$previous}">Previous Page</a>{else}&nbsp;{/if}</td>
				<td class="paging" style="text-align:center; width:33.33%">Page {$pageNum} of {$pages}</td>
				<td class="paging" style="text-align:right; width:33.33%">{if $next ne ""}<a href="gateways.php?page={$next}">Next Page</a>{else}&nbsp;{/if}</td>        
			</tr>
			</table>

			</div>
			{/if}



			</div>
			<!--end Listing-->

			</form>





	</div>



<!--Right Panel-->
{include file="sidebar.tpl.php"}
<!--End Right Panel-->


{include file="footer.tpl.php"}